package com.exercise.widgets.floatingbutton.floatview

import android.content.Context
import android.view.View
import com.exercise.widgets.R
import com.google.android.material.imageview.ShapeableImageView

class AvatarFloatView(context: Context) : BaseFloatView(context) {
    private var mAdsorbType = ADSORB_VERTICAL
    override fun getChildView(): View {
        return ShapeableImageView(context).apply {
            setImageResource(R.drawable.img_logo_48)
        }
    }



    override fun getIsCanDrag(): Boolean {
        return true
    }

    override fun getAdsorbType(): Int {
        return mAdsorbType
    }

    override fun getAdsorbTime(): Long {
        return 3000
    }

    fun setAdsorbType(type: Int) {
        mAdsorbType = type
    }
}